package com.design.service;

import com.design.domain.form.LoginForm;
import com.design.domain.form.LoginUser;
import com.design.domain.result.CommonResult;

import javax.servlet.http.HttpServletRequest;

public interface ILoginService {
	CommonResult login(LoginForm loginForm);

	CommonResult register(LoginForm loginForm);

	LoginUser getLoginUser(HttpServletRequest request);

	// 验证令牌有效期，自动刷新缓存
	void verifyToken(LoginUser loginUser);
}
